package com.feng.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HuangSuip
 */

@RequestMapping("/plugin/user")
@RestController
public class PluginController {

    @GetMapping("session")
    @ResponseBody
    public Object getSession(HttpServletRequest request) {
        System.out.println();
        request.getSession().isNew();
        return request.getSession().getId();
    }
}
